<?php
header("Content-Type:text/html; charset=gb2312");

require_once "./include/common.inc.php";

if (submitcheck("selectclass"))
{
	$courseClicked = StringToArray("{$courseid}:{$teacherid};");
	$timeClicked = ParseTimeString($courseClicked[0]['time']);
	$collecionArrayClicked = StringToCollection($timeClicked);
	$arrayNum = count($collecionArrayClicked);
	$timeStringClicked = "";
	foreach ($collecionArrayClicked as $current)
	{
		$temp = explode(":", $current);
		$timeStringClicked .= "{$temp[0]}:{$temp[1]};";
	}
    echo $timeStringClicked;
}

if (submitcheck("resultclick"))
{
	$courseClicked = StringToArray("{$courseid}:{$teacherid};");
	$timeClicked = ParseTimeString($courseClicked[0]['time']);
	$collecionArrayClicked = StringToCollection($timeClicked);
	$arrayNum = count($collecionArrayClicked);
	$timeStringClicked = "";
	foreach ($collecionArrayClicked as $current)
	{
		$temp = explode(":", $current);
		$timeStringClicked .= "{$temp[0]}:{$temp[1]};";
	}
    echo $timeStringClicked;
}

?>